package com.chenshu.mycnblog.mapper;

import com.chenshu.mycnblog.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA
 * Description：用户表的mapper
 * User：chenshu
 * Date：2024-01-02
 * Time：11:33
 */
@Mapper
public interface UserMapper {
    public int insertUser(UserInfo userInfo);

    public UserInfo selectById(@Param("id") Integer id);

    public UserInfo selectByUsername(@Param("username") String username);

}
